from flask import Flask, request, jsonify, send_file, send_from_directory
from flask_cors import CORS
import requests
from bs4 import BeautifulSoup
import os

app = Flask(__name__, static_folder='.', static_url_path='')
CORS(app)

# 添加根路由，返回index.html页面
@app.route('/')
def index():
    return send_file('index.html')

# 处理静态文件请求
@app.route('/<path:path>')
def static_file(path):
    return send_from_directory('.', path)

@app.route('/crawl', methods=['GET'])
def crawl_resume():
    # 代码不变
    pass

if __name__ == '__main__':
    app.run(debug=True)